package com.hmall.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

//@EnableFeignClients(clients = ItemClient.class)   //设置OpenFeign包扫描的位置 方式一
@EnableFeignClients(basePackages = "com.hmall.api.client"
        , defaultConfiguration = com.hmall.api.config.DefaultFeignConfig.class) //配置全局OpenFeign的日志级别，需要调试时开启
//设置OpenFeign包扫描的位置 方式二
@MapperScan("com.hmall.user.mapper")
@SpringBootApplication
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}